package city.spring.modules.health.service;

import city.spring.modules.health.entity.DiseaseEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：疾病信息表
 *
 * @author 侯坤林
 * @date 2020-07-07 10:20:49
 */
public interface DiseaseService extends IService<DiseaseEntity> {
    String CACHE_NAME = "disease";

    /**
     * 业务处理：保存一个 <strong>疾病信息表</strong>
     *
     * @param entity 疾病信息表
     */
    void saveDisease(DiseaseEntity entity);

    /**
     * 业务处理：修改一个 <strong>疾病信息表</strong>
     *
     * @param entity 疾病信息表
     */
    void updateDisease(DiseaseEntity entity);

    /**
     * 业务处理：删除一个 <strong>疾病信息表</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteDisease(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>疾病信息表</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteDisease(List<String> primaryKeys);

    List<DiseaseEntity> getFoodDisease(String foodInfoId, int forbiddenOrRecommend);

    List<DiseaseEntity> getRecipesDisease(String recipesId);

    List<DiseaseEntity> getFoodDiseaseAll(String foodInfoId);

}
